//
//  MCRechargeTableView.m
//  TLYL
//
//  Created by MC on 2017/6/13.
//  Copyright © 2017年 TLYL01. All rights reserved.
//

#import "MCRechargeTableView.h"

@implementation MCRechargeTableView
-(UIView *)hitTest:(CGPoint)point withEvent:(nullable UIEvent *)event{
    id view=[super hitTest:point withEvent:event];
    
    if ([[view superview]   isKindOfClass:[UICollectionViewCell class]]){
        return view;
    }
    
    if ([view isKindOfClass:[UIButton class]]) {
        return view;
    }
    
    if (![view isKindOfClass:[UITextField class]]) {
        
        [self endEditing:YES];
        return self;
        
    }else{
        
        return view;
        
    }
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
